package com.xuecheng.api.content;

import com.xuecheng.api.media.model.CourseTeacherDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

import java.util.List;

/**
 * <P>
 * 		课程和教师关联服务API
 * </p>
 *
 * @Description: 课程和教师关联信息管理
 * @Author: Flippy
 * @Date: 2019/9/17 11:42
 */
@Api(value = "课程和教师关联信息管理服务API", tags = "7..课程管理")
public interface CourseRelatedTeacherAPI {


	@ApiOperation(value = "获取课程相关的教师信息")
	@ApiImplicitParam(name = "courseBaseId", value = "课程信息Id", required = true, dataType = "Long", paramType = "path", example = "1")
	List<CourseTeacherDTO> courseTeachers(Long courseBaseId);


	@ApiOperation(value = "保存课程相关的教师信息")
	@ApiImplicitParam(name = "teacherDTO", value = "教师信息", required = true, dataType = "CourseTeacherDTO", paramType = "body")
	CourseTeacherDTO addCourseTeachers(CourseTeacherDTO teacherDTO);


	@ApiOperation(value = "删除教师信息")
	@ApiImplicitParams({
			@ApiImplicitParam(name = "courseBaseId", value = "课程基本信息Id", required = true, dataType = "Long", paramType = "path", example = "1"),
			@ApiImplicitParam(name = "courseTeacherId", value = "老师Id信息", required = true, dataType = "Long", paramType = "path", example = "1")
	})
	boolean delCourseTeachers(Long courseBaseId, Long courseTeacherId);

}
